package com.siwei.mes.mapper.system;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.system.AppVersion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * app版本号(AppVersion)表数据库访问层
 *
 * @author linzi
 * @since 2024-01-29 22:26:25
 */
public interface AppVersionMapper extends BaseMapper<AppVersion> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<AppVersion> getList(AppVersion entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    AppVersion loadById(@Param("id") Long id);

    /**
     * 获取版本号
     *
     * @param platform
     * @return
     */
    AppVersion getVersion(@Param("platform") String platform);
}
